package com.taiji.workOrder.domain;

import com.taiji.common.annotation.Excel;
import com.taiji.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 工单附件对象 order_enclosure
 * 
 * @author taiji
 * @date 2023-03-09
 */
@ApiModel(value = "OrderEnclosure", description = "工单附件对象")
public class OrderEnclosure extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @ApiModelProperty("主键id编号")
    private Long id;

    /** 工单编号 */
    @Excel(name = "工单编号")
    @ApiModelProperty("工单编号")
    private String workNumber;

    /** 附件编码 */
    @ApiModelProperty("附件编码")
    @Excel(name = "附件编码")
    private String enclosureCode;

    /** 附件名称 */
    @ApiModelProperty("附件名称")
    @Excel(name = "附件名称")
    private String name;

    /** 存储路径 */
    @ApiModelProperty("存储路径")
    @Excel(name = "存储路径")
    private String url;

    /** 附件类型 */
    @ApiModelProperty("附件类型(0为工单附件，1为处理过程附件)")
    @Excel(name = "附件类型")
    private String type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setWorkNumber(String workNumber) 
    {
        this.workNumber = workNumber;
    }

    public String getWorkNumber() 
    {
        return workNumber;
    }
    public void setEnclosureCode(String enclosureCode) 
    {
        this.enclosureCode = enclosureCode;
    }

    public String getEnclosureCode() 
    {
        return enclosureCode;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("workNumber", getWorkNumber())
            .append("enclosureCode", getEnclosureCode())
            .append("name", getName())
            .append("url", getUrl())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
